<?php
	include("includes/secure.php");
	if ( isset ($_POST['use_login']) && $_POST['use_login'] != ''){
		include("includes/config.php");
		include("includes/class/user.class.php");
	
		$user = new User(); 
		$use_login = trim ($_POST['use_login']);
		if( $user->userExist($use_login, (int) $_POST['use_code']) )//$_POST['use_login'] : se usa en el update de user.
			echo 1;
		else
			echo 0;
	}
	else
		echo -1;
?>